
#!/bin/bash

MACHINE[1]=wolverine
MACHINE[2]=anjo
MACHINE[3]=noturno
MACHINE[4]=justiceiro
MACHINE[5]=demolidor
MACHINE[6]=hulk
MACHINE[7]=magneto
MACHINE[8]=ciclope
MACHINE[9]=colossus
MACHINE[10]=vampira
MACHINE[11]=elektra
MACHINE[12]=tempestade
MACHINE[13]=venon
MACHINE[14]=gambit
MACHINE[15]=x-men

read path

for ((i=1; i<16; i++));
do
	if [ $i -lt 10 ];
	then
		./${path}/generator 1 ${MACHINE[$i]} ${i}0000000000 ${i}000000 game 100 > ${MACHINE[$i]}_insert.txt
		./${path}/generator 2 ${MACHINE[$i]} ${i}0000000000 ${i}000000 game 100 > ${MACHINE[$i]}_remove.txt
		./${path}/generator 3 ${MACHINE[$i]} ${i}0000000000 ${i}000000 game 100 > ${MACHINE[$i]}_search.txt
	else
		./${path}/generator 1 ${MACHINE[$i]} 0${i}000000000 0${i}00000 game 100 > ${MACHINE[$i]}_insert.txt
		./${path}/generator 2 ${MACHINE[$i]} 0${i}000000000 0${i}00000 game 100 > ${MACHINE[$i]}_remove.txt
		./${path}/generator 3 ${MACHINE[$i]} 0${i}000000000 0${i}00000 game 100 > ${MACHINE[$i]}_search.txt
	fi
done
